<?php
/***************************************************************************
 *
 *   copyright            : (C) 2005 Winds of Storm
 *
 *   $Id: phpbb_db.php,v 1.6 2005/12/30 22:08:24 nathan Exp $
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

//
// Function taken from phpBB2 includes/functions.php
//
function encode_ip ($dotquad_ip) {
	$ip_sep = explode('.', $dotquad_ip);
	return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]);
}

$smilies_limit          = "ORDER BY smilies_id LIMIT 0,21";
$user_id_field		= "user_id";
$user_name_field	= "username";
$user_pass_field	= "user_password";
$avatar_field		= "user_avatar";
$smile_pattern_field    = "code";
$smile_url_field        = "smile_url";
$g_id_f			= 'group_id';
$users_table		= $config['FORUM_DB_PREFIX'] . "users";
$smilies_table          = $config['FORUM_DB_PREFIX'] . "smilies";
$group_table		= $config['FORUM_DB_PREFIX'] . "user_group";
$ban_table		= $config['FORUM_DB_PREFIX'] . "banlist";

$avatars_html_path      = $config['FORUM_BASE_URL'] . "images/avatars/";
$smilies_path           = $config['FORUM_BASE_URL'] . "images/smiles/";
$smilies_all_url        = $config['FORUM_BASE_URL'] . "posting.php?mode=smilies";
$profile_url		= $config['FORUM_BASE_URL'] . "profile.$phpEx?mode=viewprofile&u=";
?>
